home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / hyperirc.sit / Hyper irc 0.52 / background_2599.xml next >
Extensible Markup Language  |  1991-09-30  |  14KB  |  428 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2599</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3901.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_2238.css" />
  11.     <part>
  12.         <id>43</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <true /> </autoTab>
  20.         <lockText> <false /> </lockText>
  21.         <rect>
  22.             <left>130</left>
  23.             <top>209</top>
  24.             <right>331</right>
  25.             <bottom>224</bottom>
  26.         </rect>
  27.         <style>rectangle</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <true /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>9</textSize>
  38.         <textStyle>bold</textStyle>
  39.         <textHeight>12</textHeight>
  40.         <name>hostName</name>
  41.         <script>on closeFieldput TCPNameToAddr(field "hostName") into field "address"put TCPNameToAddr(field "hostName")end closeFieldon mouseupgo card "Conf"end mouseup</script>
  42.     </part>
  43.     <part>
  44.         <id>26</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <true /> </fixedLineHeight>
  51.         <autoTab> <true /> </autoTab>
  52.         <lockText> <true /> </lockText>
  53.         <rect>
  54.             <left>22</left>
  55.             <top>232</top>
  56.             <right>265</right>
  57.             <bottom>248</bottom>
  58.         </rect>
  59.         <style>transparent</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <true /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>right</textAlign>
  68.         <font>Geneva</font>
  69.         <textSize>9</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>12</textHeight>
  72.         <name>address</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>7</id>
  77.         <type>button</type>
  78.         <visible> <true /> </visible>
  79.         <reserved5> 0 </reserved5>
  80.         <reserved4> 0 </reserved4>
  81.         <reserved3> 0 </reserved3>
  82.         <reserved2> 0 </reserved2>
  83.         <reserved1> 0 </reserved1>
  84.         <enabled> <true /> </enabled>
  85.         <rect>
  86.             <left>411</left>
  87.             <top>297</top>
  88.             <right>443</right>
  89.             <bottom>326</bottom>
  90.         </rect>
  91.         <style>shadow</style>
  92.         <showName> <false /> </showName>
  93.         <highlight> <false /> </highlight>
  94.         <autoHighlight> <false /> </autoHighlight>
  95.         <sharedHighlight> <true /> </sharedHighlight>
  96.         <family>0</family>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>21700</icon>
  99.         <textAlign>center</textAlign>
  100.         <font>Chicago</font>
  101.         <textSize>12</textSize>
  102.         <textStyle>plain</textStyle>
  103.         <name>Home</name>
  104.         <script>on mouseUpvisual effect iris opengo Homeend mouseUp</script>
  105.     </part>
  106.     <part>
  107.         <id>18</id>
  108.         <type>button</type>
  109.         <visible> <true /> </visible>
  110.         <reserved5> 0 </reserved5>
  111.         <reserved4> 0 </reserved4>
  112.         <reserved3> 0 </reserved3>
  113.         <reserved2> 0 </reserved2>
  114.         <reserved1> 0 </reserved1>
  115.         <enabled> <true /> </enabled>
  116.         <rect>
  117.             <left>367</left>
  118.             <top>297</top>
  119.             <right>399</right>
  120.             <bottom>326</bottom>
  121.         </rect>
  122.         <style>shadow</style>
  123.         <showName> <false /> </showName>
  124.         <highlight> <false /> </highlight>
  125.         <autoHighlight> <false /> </autoHighlight>
  126.         <sharedHighlight> <true /> </sharedHighlight>
  127.         <family>0</family>
  128.         <titleWidth>0</titleWidth>
  129.         <icon>2478</icon>
  130.         <textAlign>center</textAlign>
  131.         <font>Chicago</font>
  132.         <textSize>12</textSize>
  133.         <textStyle>plain</textStyle>
  134.         <name>Home</name>
  135.         <script>on mouseUpvisual effect iris opengo card "info"end mouseUp</script>
  136.     </part>
  137.     <part>
  138.         <id>27</id>
  139.         <type>field</type>
  140.         <visible> <true /> </visible>
  141.         <dontWrap> <false /> </dontWrap>
  142.         <dontSearch> <false /> </dontSearch>
  143.         <sharedText> <false /> </sharedText>
  144.         <fixedLineHeight> <true /> </fixedLineHeight>
  145.         <autoTab> <true /> </autoTab>
  146.         <lockText> <true /> </lockText>
  147.         <rect>
  148.             <left>208</left>
  149.             <top>248</top>
  150.             <right>265</right>
  151.             <bottom>264</bottom>
  152.         </rect>
  153.         <style>transparent</style>
  154.         <autoSelect> <false /> </autoSelect>
  155.         <showLines> <true /> </showLines>
  156.         <wideMargins> <false /> </wideMargins>
  157.         <multipleLines> <false /> </multipleLines>
  158.         <reservedFamily> 0 </reservedFamily>
  159.         <titleWidth>0</titleWidth>
  160.         <icon>0</icon>
  161.         <textAlign>right</textAlign>
  162.         <font>Geneva</font>
  163.         <textSize>9</textSize>
  164.         <textStyle>plain</textStyle>
  165.         <textHeight>12</textHeight>
  166.         <name>port</name>
  167.         <script>on openFieldanswer "Are you sure you know that" &Γé¼ field "port" && "is not correct"┬¼with "Yes" or "No"closeField</script>
  168.     </part>
  169.     <part>
  170.         <id>28</id>
  171.         <type>field</type>
  172.         <visible> <true /> </visible>
  173.         <dontWrap> <false /> </dontWrap>
  174.         <dontSearch> <false /> </dontSearch>
  175.         <sharedText> <false /> </sharedText>
  176.         <fixedLineHeight> <true /> </fixedLineHeight>
  177.         <autoTab> <true /> </autoTab>
  178.         <lockText> <true /> </lockText>
  179.         <rect>
  180.             <left>208</left>
  181.             <top>264</top>
  182.             <right>265</right>
  183.             <bottom>280</bottom>
  184.         </rect>
  185.         <style>transparent</style>
  186.         <autoSelect> <false /> </autoSelect>
  187.         <showLines> <true /> </showLines>
  188.         <wideMargins> <false /> </wideMargins>
  189.         <multipleLines> <false /> </multipleLines>
  190.         <reservedFamily> 0 </reservedFamily>
  191.         <titleWidth>0</titleWidth>
  192.         <icon>0</icon>
  193.         <textAlign>right</textAlign>
  194.         <font>Geneva</font>
  195.         <textSize>9</textSize>
  196.         <textStyle>plain</textStyle>
  197.         <textHeight>12</textHeight>
  198.         <name>local port</name>
  199.         <script></script>
  200.     </part>
  201.     <part>
  202.         <id>32</id>
  203.         <type>button</type>
  204.         <visible> <true /> </visible>
  205.         <reserved5> 0 </reserved5>
  206.         <reserved4> 0 </reserved4>
  207.         <reserved3> 0 </reserved3>
  208.         <reserved2> 0 </reserved2>
  209.         <reserved1> 0 </reserved1>
  210.         <enabled> <true /> </enabled>
  211.         <rect>
  212.             <left>274</left>
  213.             <top>282</top>
  214.             <right>331</right>
  215.             <bottom>298</bottom>
  216.         </rect>
  217.         <style>radiobutton</style>
  218.         <showName> <true /> </showName>
  219.         <highlight> <true /> </highlight>
  220.         <autoHighlight> <false /> </autoHighlight>
  221.         <sharedHighlight> <true /> </sharedHighlight>
  222.         <family>0</family>
  223.         <titleWidth>0</titleWidth>
  224.         <icon>0</icon>
  225.         <textAlign>center</textAlign>
  226.         <font>Geneva</font>
  227.         <textSize>10</textSize>
  228.         <textStyle>plain</textStyle>
  229.         <name>CrLf</name>
  230.         <script>on mouseUpset the hilite of bg button "CrLf" to trueset the hilite of bg button "Cr" to falseset the hilite of bg button "Nothing" to falseend mouseUp</script>
  231.     </part>
  232.     <part>
  233.         <id>33</id>
  234.         <type>button</type>
  235.         <visible> <true /> </visible>
  236.         <reserved5> 0 </reserved5>
  237.         <reserved4> 0 </reserved4>
  238.         <reserved3> 0 </reserved3>
  239.         <reserved2> 0 </reserved2>
  240.         <reserved1> 0 </reserved1>
  241.         <enabled> <true /> </enabled>
  242.         <rect>
  243.             <left>274</left>
  244.             <top>296</top>
  245.             <right>331</right>
  246.             <bottom>312</bottom>
  247.         </rect>
  248.         <style>radiobutton</style>
  249.         <showName> <true /> </showName>
  250.         <highlight> <false /> </highlight>
  251.         <autoHighlight> <false /> </autoHighlight>
  252.         <sharedHighlight> <true /> </sharedHighlight>
  253.         <family>0</family>
  254.         <titleWidth>0</titleWidth>
  255.         <icon>0</icon>
  256.         <textAlign>center</textAlign>
  257.         <font>Geneva</font>
  258.         <textSize>10</textSize>
  259.         <textStyle>plain</textStyle>
  260.         <name>Cr</name>
  261.         <script>on mouseUpset the hilite of bg button "Cr" to trueset the hilite of bg button "CrLf" to falseset the hilite of bg button "Nothing" to falseend mouseUp</script>
  262.     </part>
  263.     <part>
  264.         <id>34</id>
  265.         <type>button</type>
  266.         <visible> <true /> </visible>
  267.         <reserved5> 0 </reserved5>
  268.         <reserved4> 0 </reserved4>
  269.         <reserved3> 0 </reserved3>
  270.         <reserved2> 0 </reserved2>
  271.         <reserved1> 0 </reserved1>
  272.         <enabled> <true /> </enabled>
  273.         <rect>
  274.             <left>274</left>
  275.             <top>310</top>
  276.             <right>331</right>
  277.             <bottom>326</bottom>
  278.         </rect>
  279.         <style>radiobutton</style>
  280.         <showName> <true /> </showName>
  281.         <highlight> <false /> </highlight>
  282.         <autoHighlight> <false /> </autoHighlight>
  283.         <sharedHighlight> <true /> </sharedHighlight>
  284.         <family>0</family>
  285.         <titleWidth>0</titleWidth>
  286.         <icon>0</icon>
  287.         <textAlign>center</textAlign>
  288.         <font>Geneva</font>
  289.         <textSize>10</textSize>
  290.         <textStyle>plain</textStyle>
  291.         <name>Nothing</name>
  292.         <script>on mouseUpset the hilite of bg button "Nothing" to trueset the hilite of bg button "Cr" to falseset the hilite of bg button "CrLf" to falseend mouseUp</script>
  293.     </part>
  294.     <part>
  295.         <id>36</id>
  296.         <type>button</type>
  297.         <visible> <true /> </visible>
  298.         <reserved5> 0 </reserved5>
  299.         <reserved4> 0 </reserved4>
  300.         <reserved3> 0 </reserved3>
  301.         <reserved2> 0 </reserved2>
  302.         <reserved1> 0 </reserved1>
  303.         <enabled> <true /> </enabled>
  304.         <rect>
  305.             <left>127</left>
  306.             <top>284</top>
  307.             <right>206</right>
  308.             <bottom>304</bottom>
  309.         </rect>
  310.         <style>roundrect</style>
  311.         <showName> <true /> </showName>
  312.         <highlight> <false /> </highlight>
  313.         <autoHighlight> <true /> </autoHighlight>
  314.         <sharedHighlight> <true /> </sharedHighlight>
  315.         <family>0</family>
  316.         <titleWidth>0</titleWidth>
  317.         <icon>0</icon>
  318.         <textAlign>center</textAlign>
  319.         <font>Chicago</font>
  320.         <textSize>12</textSize>
  321.         <textStyle>plain</textStyle>
  322.         <name>Send Line</name>
  323.         <script>on mouseUpglobal connectionIDask "Line to send:" && connectionIDif it is not empty thensendhost itend ifend mouseUp</script>
  324.     </part>
  325.     <part>
  326.         <id>37</id>
  327.         <type>field</type>
  328.         <visible> <true /> </visible>
  329.         <dontWrap> <false /> </dontWrap>
  330.         <dontSearch> <false /> </dontSearch>
  331.         <sharedText> <true /> </sharedText>
  332.         <fixedLineHeight> <true /> </fixedLineHeight>
  333.         <autoTab> <false /> </autoTab>
  334.         <lockText> <true /> </lockText>
  335.         <rect>
  336.             <left>381</left>
  337.             <top>5</top>
  338.             <right>508</right>
  339.             <bottom>20</bottom>
  340.         </rect>
  341.         <style>rectangle</style>
  342.         <autoSelect> <false /> </autoSelect>
  343.         <showLines> <false /> </showLines>
  344.         <wideMargins> <false /> </wideMargins>
  345.         <multipleLines> <false /> </multipleLines>
  346.         <reservedFamily> 0 </reservedFamily>
  347.         <titleWidth>0</titleWidth>
  348.         <icon>0</icon>
  349.         <textAlign>center</textAlign>
  350.         <font>Geneva</font>
  351.         <textSize>9</textSize>
  352.         <textStyle>bold</textStyle>
  353.         <textHeight>12</textHeight>
  354.         <name>state</name>
  355.         <script></script>
  356.     </part>
  357.     <part>
  358.         <id>40</id>
  359.         <type>button</type>
  360.         <visible> <true /> </visible>
  361.         <reserved5> 0 </reserved5>
  362.         <reserved4> 0 </reserved4>
  363.         <reserved3> 0 </reserved3>
  364.         <reserved2> 0 </reserved2>
  365.         <reserved1> 0 </reserved1>
  366.         <enabled> <true /> </enabled>
  367.         <rect>
  368.             <left>17</left>
  369.             <top>7</top>
  370.             <right>91</right>
  371.             <bottom>22</bottom>
  372.         </rect>
  373.         <style>rectangle</style>
  374.         <showName> <true /> </showName>
  375.         <highlight> <false /> </highlight>
  376.         <autoHighlight> <true /> </autoHighlight>
  377.         <sharedHighlight> <true /> </sharedHighlight>
  378.         <family>0</family>
  379.         <titleWidth>0</titleWidth>
  380.         <icon>0</icon>
  381.         <textAlign>center</textAlign>
  382.         <font>Geneva</font>
  383.         <textSize>10</textSize>
  384.         <textStyle>plain</textStyle>
  385.         <name>Clear Display</name>
  386.         <script>on mouseUpput empty into card field "screen"end mouseUp</script>
  387.     </part>
  388.     <part>
  389.         <id>47</id>
  390.         <type>field</type>
  391.         <visible> <true /> </visible>
  392.         <dontWrap> <false /> </dontWrap>
  393.         <dontSearch> <false /> </dontSearch>
  394.         <sharedText> <false /> </sharedText>
  395.         <fixedLineHeight> <false /> </fixedLineHeight>
  396.         <autoTab> <false /> </autoTab>
  397.         <lockText> <false /> </lockText>
  398.         <rect>
  399.             <left>318</left>
  400.             <top>6</top>
  401.             <right>379</right>
  402.             <bottom>20</bottom>
  403.         </rect>
  404.         <style>transparent</style>
  405.         <autoSelect> <false /> </autoSelect>
  406.         <showLines> <false /> </showLines>
  407.         <wideMargins> <false /> </wideMargins>
  408.         <multipleLines> <false /> </multipleLines>
  409.         <reservedFamily> 0 </reservedFamily>
  410.         <titleWidth>0</titleWidth>
  411.         <icon>0</icon>
  412.         <textAlign>center</textAlign>
  413.         <font>Geneva</font>
  414.         <textSize>9</textSize>
  415.         <textStyle>outline</textStyle>
  416.         <textHeight>12</textHeight>
  417.         <name>TheTime</name>
  418.         <script></script>
  419.     </part>
  420.     <content>
  421.         <layer>background</layer>
  422.         <id>37</id>
  423.         <text>State=no connection</text>
  424.     </content>
  425.     <name></name>
  426.     <script>on idleglobal connectionIDput the time into bg field "TheTime"--put the heapSpaceif connectionID is empty thenput "State=no connection" into field "state"exit idleend ifget TCPState(connectionID)put "State=" & it into field "state"if it is "please close" thenglobal connectionIDif connectionID is not empty thenTCPRelease connectionIDput empty into connectionIDend ifend ifif it is not "established" then exit idle-- connectionID,return,10,emptyput TCPRecvUpTo(connectionID,linefeed,10,empty) into newInputif newInput is not empty then-- put newinputset cursor to busyif first word of newinput is "PING" thensendhost "PONG"put "PONG" && word 2 of newinputput newinputexit idleend ifget second word of newinputif it is "PRIVMSG" thenget ctoc(linefeed&"{}|[]\",return&"├ñ├Ñ├╢├ä├à├û",newinput)put word 1 of it & word 4 to 100 of it & return ┬¼after  card field "screen" of card "Chat"exit idleelse if it is "MODE" thenput ctoc(linefeed,return,newinput) after card field "screen" of card "Chat"exit idleend if-- get rect of field "screen"-- get (item 4 of it) - (item 2 of it)-- put (it div (the textHeight of field "screen"))-1 into linesAvailget card field "screen" & newInput-- put the number of lines in it into linesThere-- if linesThere > linesAvail then--   delete line 1 to (linesThere-linesAvail) of it-- end ifput ctoc(linefeed,return,it) into card field "screen"end ifend idleon openstackglobal connectionIDput empty into connectionIDend openstackon closestackglobal connectionIDif connectionID is not empty thenTCPRelease connectionIDput empty into connectionIDend ifend closestackon sendhost aglobal connectionIDTCPSend connectionID,a & returnend sendhost</script>
  427. </background>
  428.